import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import '@/assets/style/resets.css'  // 初始化样式

import router from './router'   // 引入路由
import { createPinia } from 'pinia' // 引入pinia
import ElementPlus from 'element-plus';
import axios from 'axios'
import 'element-plus/theme-chalk/el-message.css'; // 仅导入特定组件的样式
import 'element-plus/theme-chalk/el-menu.css'; // 导入菜单组件的样式
import 'element-plus/theme-chalk/index.css'; // 导入所有组件的样式
import { Button, Field, ActionSheet, Icon, Uploader } from 'vant';
import 'vant/lib/index.css';


const app = createApp(App)
const pinia = createPinia()


app.use(ElementPlus)
   .use(router)
   .use(pinia)
   .use(Button)
   .use(Field)
   .use(ActionSheet)
   .use(Icon)
   .use(Uploader)
   .config.globalProperties.$axios = axios
app.mount('#app')
